/* 这个文件来放置主界面中的样式 */

.client-container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main {
    width: 1000px;
    height: 740px;
    background-color: rgb(238, 238, 238);
    border-radius: 5px;

    display: flex;

    z-index: 2;
}

.main .left {
    width: 280px;
    height: 100%;
    background-color: rgb(46, 50, 56);

    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.main .right {
    width: 720px;
    height: 100%;

    padding: 0 20px;
}

.cover {
    width: 100%;
    height: 100%;

    background-image: url(../img/cat.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    /* 为了让 .cover 和 .main 能够重叠, 给 .cover 加上个定位属性 */
    position: absolute;
    top: 0;
    left: 0;

    /* 设置了下 z 轴坐标 */
    z-index: 1;

    /* 使用 css 滤镜效果, 让背景图变的朦胧起来 */
    filter: blur(20px);
}

.main .left .user {
    height: 80px;
    font-size: 20px;
    line-height: 80px;
    color: white;
    padding: 0 20px;
}

.main .left .search {
    height: 40px;
    padding: 0 20px;

    /* 使用弹性布局, 让里面的元素, 水平方向排列 */
    display: flex;
    justify-content: center;
    align-items: center;
}


.main .left .search input {
    height: 34px;
    width: 200px;
    line-height: 34px;
    font-size: 14px;
    color: white;
    background-color: rgb(38, 41, 46);

    /* 去除边框和轮廓线 */
    border: none;
    outline: none;
    /* 输入框里的文字和左侧边界有个边距 */
    padding-left: 10px;

    border-radius: 5px;
}

.main .left .search button {
    height: 34px;
    width: 34px;
    border: none;
    outline: none;

    background-color: rgb(38, 41, 46);

    border-radius: 5px;
    background-image: url(../img/搜索.png);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: center center;
}

.main .left .search button:active {
    background-color: grey;
}

.main .left .tab {
    height: 50px;
    display: flex;
    align-items: center;
}

.main .left .tab .tab-session {
    height: 100%;
    width: 50%;

    background-image: url(../img/对话.png);
    background-repeat: no-repeat;
    background-size: 30px 30px;
    background-position: center center;
}


.main .left .tab .tab-friend {
    height: 100%;
    width: 50%;

    background-image: url(../img/用户2.png);
    background-repeat: no-repeat;
    background-size: 30px 30px;
    background-position: center center;
}

.main .left .list {
    height: 570px;

    /* 如果里面的内容太多了, 就自动提供一个滚动条 */
    overflow: auto;
}

.main .left .list li {
    height: 60px;
    padding: 10px 20px;
    color: white;
    border-top: 1px solid black;
}

.main .left .list .selected {
    background-color: rgb(46, 54, 65);
}

/* 这个样式是给会话列表使用的 */
.main .left .list li h3,
.main .left .list li p {
    height: 20px;
    font-size: 14px;
    line-height: 20px;
}

/* 这个样式是给好友列表使用的 */
.main .left .list li h4 {
    height: 40px;
    line-height: 40px;
    font-size: 20px;
}

/* 应用了这个 css 类的元素就会被自动隐藏 */
.hide {
    display: none;
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
    display: none;
}

.main .right .title {
    height: 50px;
    line-height: 50px;
    font-size: 20px;
    text-align: center;
    border-bottom: 1px solid #ccc;
}

.main .right .message-show {
    height: 550px;

    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;

    /* 内容太多, 自动进行滚动 */
    overflow: auto;
}

.main .right .message-show .message {
    margin-top: 10px;
    /* 宽度默认 100%, 高度的话不显式设定, 后续一条消息的内容有多有少 */
    display: flex;
}

/* 这个样式让子元素靠左 */
.main .right .message-show .message-left {
    justify-content: flex-start;
}

/* 这个样式让子元素靠右 */
.main .right .message-show .message-right {
    justify-content: flex-end;
}

.main .right .message-show .page {
    float: right;
}
.main .right .message-show .message .box {
    /* box 凸显出左右这样的效果, 宽度不能是 100% */
    width: 500px;
}

.main .right .message-show .message .box h4 {
    /* 去掉加粗效果 */
    font-weight: normal;
    height: 20px;
    line-height: 20px;
    font-size: 16px;
}

.main .right .message-show .message .box p {
    padding: 20px;
    border-radius: 10px;
}

/* 给左侧右侧消息设置背景色 */
.main .right .message-show .message-left .box p {
    background-color: #fff;
}

.main .right .message-show .message-right .box p {
    background-color: rgb(123, 181, 107);
}

.main .right .message-input {
    /* 先把 textarea 转成块级元素, 方便设置尺寸啥的 */
    display: block;
    width: 100%;
    height: 100px;
    border: none;
    outline: none;

    margin-top: 2px;
    background-color: rgb(238, 238, 238);
    padding: 10px;
    resize: none;
}

.main .right .ctrl {
    height: 35px;
    display: flex;
    justify-content: flex-end;
}

.main .right .ctrl button {
    height: 35px;
    width: 100px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.main .right .ctrl button:active {
    background-color: grey;
    color: white;
}

.main .right .back {
    width: 20px;
    display: flex;
    float: left;
    margin-top: 14px;
}

.main  .right .settings {
    float: right;
    display: flex;
    margin-top: 8px;

    width: 20px;
    height: 33px;
}

.main .right .friend_back {
    width: 20px;
    height: 22px;
    margin-left: -18px;
    margin-top: 7px;
}
.main .right .group_chat_friends {
    height: 187px; overflow: auto;
}

.main .right .group_friends{
    display: flex;
}
.main .right .group_friends span {
    width: 136px;
}
.main .right .group_friends .group_friends_img {
    background-size: 60px 53px;
    background-image: url(../img/yonghu.jpg);
    width: 60px;
    height: 53px;
    margin-top: 18px;
    margin-right: 7px;
    margin-bottom: -20px;
    display: inline-block;
}


.main .right .group_friends .group_user {
    margin-right: 15px;
}

.line {
    border: 1px solid #ccc;

}
.main .right .group_chat_invite_friends {
    overflow: auto; height: 350px;
}

.main .right .group_chat_invite_friends .group_chat_invite_friends_img{
    background-image: url(../img/yonghu.jpg);
    background-size: 60px 53px;
    display: inline-flex;
    width: 60px;
    height: 53px;
    margin-top: 18px;
    margin-right: 40px;
    margin-bottom: -18px;
    margin-left: 23px;
}

.main .right .set_up_group_chat_button,.add_a_contact_button,.set_up_group_chat_button_Invite {
    margin-left: 46px;
    background-color: lightskyblue;
    height: 90px;
    width: 80%;
    border-radius: 63px;
    margin-top: 10px;
    border: 1px solid #ccc;
}

.main .right .send-message_button,.EDITOR_button,.Edit_complete,.send-message_button_group {
    margin-left: 46px;
    background-color: cornsilk;
    height: 90px;
    width: 80%;
    border-radius: 63px;
    margin-top: 10px;
    border: 1px solid #ccc;
}

.main .right button:active {
    background-color: black;
    color: white;
}
.main .right .add-friend_button {
    margin-left: 46px;
    background-color: blanchedalmond;
    height: 90px;
    width: 80%;
    border-radius: 63px;
    margin-top: 10px;
    border: 1px solid #ccc;
}

.main .right .delete-friend_button,.Logout_user_button,.delete-friend_button_group,.quit-friend_button_group {
    margin-left: 46px;
    background-color: indianred;
    height: 90px;
    width: 80%;
    border-radius: 63px;
    margin-top: 10px;
    border: 1px solid #ccc;
}


.main .right .add_chat_friends {
    height: 690px; overflow: auto;
}




.main .right .add_chat_friends .add_chat_friends_div {
    display: flex;
    margin-top: 25px;
}




.main .right  .add_chat_friends .add_chat_friends_div .add_chat_friends_img{
    width: 60px;
    background-image: url(../img/cat.jpg);
    height: 53px;
    display: inline-block;
    background-size: 60px 53px;

    margin-top: 18px;
}





.main .right  .add_chat_friends .add_chat_friends_div span {
    display: block;
    line-height: 89px;
    width: 100px;
    text-align: center;
}
.main .right  .add_chat_friends .add_chat_friends_div input{
    width: 405px;
    height: 42px;
    margin-top: 22px;
    margin-right: 11px;

}
.main .right   .add_chat_friends .add_chat_friends_div button {
    width: 100px;
    height: 43px;
    margin-top: 21px;
}



.main  .right .friend_profile_picture{
    background-image: url(../img/yonghu.jpg);
    height: 200px;
    width: 100%;
    background-repeat: no-repeat;
    background-size: 150px 150px;
    background-position: center center;
}



.main  .right .personage_profile_picture {
    background-image: url(../img/cat.jpg);
    height: 200px;
    width: 100%;
    background-repeat: no-repeat;
    background-size: 150px 150px;
    background-position: center center;
}

.main .right .group_chat_message {
    height: 245px; overflow: auto;
}

.main .right .group_chat_name {
    width: 405px;
    height: 42px;
    /*margin-top: 22px;*/
    margin-right: 11px;
    margin-left: 30px;
    margin-top: 88px;

}

.main .right .set_group_chat_name {
    width: 100px;
    height: 43px;
    margin-top: 21px;
}

.main .right .friend_request {
    height: 690px; overflow: auto;
}

.main .right .friend_request_div {
    display: flex;
    margin-top: 25px;
}

.main .right .friend_request_div .friend_request_div_img {
    width: 60px;
    background-image: url(../img/yonghu.jpg);
    height: 53px;
    background-size: 59px 53px;
    margin-top: 18px;
}
.main .right .friend_request_div img {
    width: 60px;
    height: 53px;

    margin-top: 18px;
}


.main .right .friend_request_div span {
    display: block;
    line-height: 89px;
    width: 100px;
    text-align: center;
}
.main .right .friend_request_div input {
    width: 405px;
    height: 42px;
    margin-top: 22px;
    margin-right: 11px;
}
.main .right .friend_request_div button {
    width: 50px;
    height: 43px;
    margin-top: 21px;
    border-radius: 13px;
    margin-right: 4px;
}

.main .right .friend_chat_page {
    background-image: url(../img/yonghu.jpg);
    width: 44px;
    background-size: 44px 43px;
    height: 43px;
    margin-right: 4px;
    margin-top: 3px;}

.main .right .friend_chat_page_div {
    display: inline-flex;
}



.main .right .personal_homepage_name {
    text-align: center; font-size: 35px; margin-bottom: 38px;
}

.main .right .personal_homepage_name_div {
    text-align: center;
}

.main .right .personal_homepage_name_div div {
    margin-top: 14px;
}
.main .right .personal_homepage_name_div span {
    width: 100px;
    text-align: center;
}
.main .left .new_friend_request{
    margin-left: 17px;
}
.main .left .new_friend_request h3 {
    color: red;
}
.main .left .new_friend_request p {
    color: white;
}

.mediate_between_two_parties{
    text-align: center;
}
.main .personal_profile_picture {
    background-size: 42px 38px;
    background-image: url(../img/yonghu.jpg);
    width: 42px;
    height: 38px;
    margin-top: 20px;
    margin-right: 6px;
    margin-bottom: -12px;
    display: inline-block;
}